//
//  UIView+BRMViewShadow.m
//  BrezzeSaaS
//
//  Created by IOS on 2023/6/14.
//  Copyright © 2023 Brezze GWG. All rights reserved.
//

#import "UIView+BRMViewShadow.h"

@implementation UIView (BRMViewShadow)

- (void)br_addBaseShadow {
    // Shadow Code
    [self br_addBaseShadow:NO];
}

- (void)br_addBaseShadowDown {
    // Shadow Code
    [self br_addBaseShadow:YES];
}

- (void)br_addBaseShadow:(BOOL)isDown {
    self.layer.shadowColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.05].CGColor;
    self.layer.shadowOffset = isDown ? CGSizeMake(0,3) :CGSizeMake(0,-3);
    self.layer.shadowRadius = 8;
    self.layer.shadowOpacity = 1;
}

@end
